﻿using System.Xml.Serialization;

namespace Sharp.Framework.Comet
{
    /// <summary>
    /// 消息实体
    /// </summary>
    [XmlInclude(typeof(object))]
    [System.Serializable]
    public class Message
    {
        /// <summary>
        /// 发送人
        /// </summary>
        public   int Sender;

        /// <summary>
        /// 接收人
        /// </summary>
        public int Receiver;

        /// <summary>
        /// 消息内容
        /// </summary>
        public object Content
        {
            get;
            set;
        }

        /// <summary>
        /// 消息业务编码
        /// </summary>
        public   string Command;

        /// <summary>
        /// 创建时间
        /// </summary>
        public   long Created;

        public Message( )
        { 
        }
        public Message(int sender, int receiver, string command, long created)
        {
            Sender = sender;
            Created = created;
            Command = command;
            Receiver = receiver;
        }
    }
}